<template>
    <h1>DefinePropsRuntime</h1>
    <p>{{title}}</p>
    <ul>
        <li v-for="item in list" :key="item.id">{{item.content}}</li>
    </ul>
</template>

<script setup lang="ts">
    const props = defineProps({
        title:{
            type: String,
            required: true,
            default: '默认值'   
        },
        list: {
            type: Array,
            required: true,
            default: () => []
        }
    })

    console.log(props);
</script>